﻿
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using ManagementEffect;

namespace ServerYuGi
{
    public partial class STurnManager
    {
        private void Process_BattlePhase_END(object[] param)
        {
            super.ExEffectManager.IDPlayerCheck = IDPlayerTrongLuot;
            super.ExEffectManager.CheckPointNow = YCheckPoint.BF_END;
            super.ExEffectManager.Init();
            super.RevMSGmanager.isPlayerKoTrongLuot = true;
            List<YCheckPoint> checkpoint = new List<YCheckPoint> { YCheckPoint.BF_END};
            bool checkResume = super.Check_EffectExcute(checkpoint, super.ExEffectManager.IDPlayerCheck, "api_manager", super.api_manager);
            super.RevMSGmanager.Init();
        }
        private void Process_BattlePhase_BEGIN(object[] param)
        {
            super.ExEffectManager.IDPlayerCheck = IDPlayerTrongLuot;
            super.ExEffectManager.CheckPointNow = YCheckPoint.BF_BEGIN;
            super.ExEffectManager.Init();
            super.RevMSGmanager.isPlayerKoTrongLuot = true;
            List<YCheckPoint> checkpoint = new List<YCheckPoint> { YCheckPoint.BF_BEGIN };
            super.Check_EffectExcute(checkpoint, super.ExEffectManager.IDPlayerCheck, "api_manager", super.api_manager);
            super.RevMSGmanager.Init();
        }
    }
}
